package com.btex.app.adapter;

import android.support.annotation.Nullable;

import com.btex.app.R;
import com.btex.app.entity.SearchInfo;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/5/31
 * @time 下午5:06
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class SearchAdapter extends BaseQuickAdapter<SearchInfo, BaseViewHolder> {
    public SearchAdapter(@Nullable List<SearchInfo> data) {
        super(R.layout.search, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchInfo item) {


        helper.setText(R.id.activity_search_tv, item.getType() + "/" + item.getDanwei());

    }
}
